package com.work.work.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

@Data
@Schema(description = "项目资源详情DTO")
public class ProjectResourceDetailDTO {
    @Schema(description = "项目ID")
    private Integer projectId;

    @Schema(description = "项目名称")
    private String projectName;

    @Schema(description = "项目开始时间")
    private LocalDateTime startTime;

    @Schema(description = "项目结束时间")
    private LocalDateTime endTime;

    @Schema(description = "项目描述")
    private String description;

    @Schema(description = "项目状态")
    private Integer status;

    @Schema(description = "团队ID")
    private Integer teamId;

    @Schema(description = "资源使用列表")
    private List<ResourceUsage> resources;

    @Data
    @Schema(description = "资源使用情况")
    public static class ResourceUsage {
        @Schema(description = "资源ID")
        private Integer resourceId;

        @Schema(description = "资源名称")
        private String resourceName;

        @Schema(description = "资源类型")
        private String resourceType;

        @Schema(description = "分配数量")
        private BigDecimal allocatedQuantity;

        @Schema(description = "单位")
        private String unit;
    }
}